package ru.technogeek.labs.dreamnote.activities;

import android.app.ListActivity;
import android.os.Bundle;
import ru.technogeek.labs.dreamnote.exceptions.ThemeInitExceprion;
import ru.technogeek.labs.dreamnote.theme.DreamListLayout;;

public class DreamListActivity extends ListActivity {
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        try {
        	
        	DreamListLayout layout = new DreamListLayout(this);
            setContentView(layout);
                      
            // Add items with separate thread
            addItemsSeparateThread();
        } catch (ThemeInitExceprion e) {
        }
    }
    
    private void addItemsSeparateThread(){
        // Create runnable for adding items in gui in separate thread
        // New class actually is not needed to avoid not necessary copying
        Runnable runnable = new Runnable() {
			public void run() {
			}
		};
		runnable.run();
    }
}